<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="${pageContext.response.locale}" lang="${pageContext.response.locale}">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="stylesheet" href="<c:url value="/styles/default.css"/>" type="text/css"/>
    </head>
    <body>
        <div id="main_wrapper">
        <%@include file="jspf/header.jspf" %>
        <h1><spring:message code="customer.edit.heading"/></h1>
        <form method="post" commandName="customer">
            <spring:message code="form.name"/>:
            <input name="name" value="<c:out value="${name}" />"/>
            <spring:message code="form.type"/>
            <select name="type"> <!-- list attribute -->
                <c:forEach items="${types}" var="type">
                    <option value="${type}">${type}</option>
                </c:forEach>
            </select>
            <br />
            <spring:message code="form.username"/>:
            <input name="username" value="<c:out value="${username}" />"/>
            <spring:message code="form.password"/>:
            <input type="password" name="password" value="" />
            <input type="submit" value="<spring:message code="form.confirm"/>" />
        </form>
        </div>
    </body>
</html>
